/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.monkey.mvn.plugin;

import java.io.File;

/**
 *
 * @author edoardo
 */
public class ResourceInfo {
    
        private static final File DEFAULT_RESOURCES_DIR = new File("src/main/resources");
        private static final File DEFAULT_DESTINATION_DIR =new File("target/classes");

        
        private File resourceDir = DEFAULT_RESOURCES_DIR;
        private File destinationDir = DEFAULT_DESTINATION_DIR;

    public File getDestinationDir() {
        return destinationDir;
    }

    public void setDestinationDir(File destinationDir) {
        this.destinationDir = destinationDir;
    }

    public File getResourceDir() {
        return resourceDir;
    }

    public void setResourceDir(File resourceDir) {
        this.resourceDir = resourceDir;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ResourceInfo other = (ResourceInfo) obj;
        if (this.resourceDir != other.resourceDir && (this.resourceDir == null || !this.resourceDir.equals(other.resourceDir))) {
            return false;
        }
        if (this.destinationDir != other.destinationDir && (this.destinationDir == null || !this.destinationDir.equals(other.destinationDir))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 13 * hash + (this.resourceDir != null ? this.resourceDir.hashCode() : 0);
        hash = 13 * hash + (this.destinationDir != null ? this.destinationDir.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ResourceInfo{" + "resourceDir=" + resourceDir + ", destinationDir=" + destinationDir + '}';
    }

        
        
}
